package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.RptPrvRentBasesiteResourceMapper;
import com.rzl.expense.expense.domain.RptPrvRentBasesiteResource;
import com.rzl.expense.expense.service.IRptPrvRentBasesiteResourceService;

/**
 * 摊销应付资源明细Service业务层处理
 * 
 * @author expense
 * @date 2025-03-11
 */
@Service
public class RptPrvRentBasesiteResourceServiceImpl implements IRptPrvRentBasesiteResourceService 
{
    @Autowired
    private RptPrvRentBasesiteResourceMapper rptPrvRentBasesiteResourceMapper;

    /**
     * 查询摊销应付资源明细
     * 
     * @param paymentId 摊销应付资源明细主键
     * @return 摊销应付资源明细
     */
    @Override
    public RptPrvRentBasesiteResource selectRptPrvRentBasesiteResourceByPaymentId(String paymentId)
    {
        return rptPrvRentBasesiteResourceMapper.selectRptPrvRentBasesiteResourceByPaymentId(paymentId);
    }

    /**
     * 查询摊销应付资源明细列表
     * 
     * @param rptPrvRentBasesiteResource 摊销应付资源明细
     * @return 摊销应付资源明细
     */
    @Override
    public List<RptPrvRentBasesiteResource> selectRptPrvRentBasesiteResourceList(RptPrvRentBasesiteResource rptPrvRentBasesiteResource)
    {
        return rptPrvRentBasesiteResourceMapper.selectRptPrvRentBasesiteResourceList(rptPrvRentBasesiteResource);
    }

    /**
     * 新增摊销应付资源明细
     * 
     * @param rptPrvRentBasesiteResource 摊销应付资源明细
     * @return 结果
     */
    @Override
    public int insertRptPrvRentBasesiteResource(RptPrvRentBasesiteResource rptPrvRentBasesiteResource)
    {
        return rptPrvRentBasesiteResourceMapper.insertRptPrvRentBasesiteResource(rptPrvRentBasesiteResource);
    }

    /**
     * 修改摊销应付资源明细
     * 
     * @param rptPrvRentBasesiteResource 摊销应付资源明细
     * @return 结果
     */
    @Override
    public int updateRptPrvRentBasesiteResource(RptPrvRentBasesiteResource rptPrvRentBasesiteResource)
    {
        return rptPrvRentBasesiteResourceMapper.updateRptPrvRentBasesiteResource(rptPrvRentBasesiteResource);
    }

    /**
     * 批量删除摊销应付资源明细
     * 
     * @param paymentIds 需要删除的摊销应付资源明细主键
     * @return 结果
     */
    @Override
    public int deleteRptPrvRentBasesiteResourceByPaymentIds(String[] paymentIds)
    {
        return rptPrvRentBasesiteResourceMapper.deleteRptPrvRentBasesiteResourceByPaymentIds(paymentIds);
    }

    /**
     * 删除摊销应付资源明细信息
     * 
     * @param paymentId 摊销应付资源明细主键
     * @return 结果
     */
    @Override
    public int deleteRptPrvRentBasesiteResource()
    {
        return rptPrvRentBasesiteResourceMapper.deleteRptPrvRentBasesiteResource();
    }




    @Override
    public void batchRptPrvRentBasesiteResource(List<RptPrvRentBasesiteResource> list)
    {

         rptPrvRentBasesiteResourceMapper.batchRptPrvRentBasesiteResource(list);
    }


}
